/* 自定义弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 90%;
    max-width: 400px;
}
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}


/* 错误对话框样式 - 美化版 */
#errorDialog {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 10px;
    z-index: 1001;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    font-family: 'Arial', sans-serif;
}

/* 对话框标题 */
#errorDialog h3 {
    margin-top: 0;
    color: #d9534f;
    font-size: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* 错误消息内容 */
#errorMsg {
    display: block;
    margin: 15px 0;
    color: #333;
    line-height: 1.6;
}

/* 跳转链接样式 */
#errorMsg a {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 15px;
    background-color: #337ab7;
    color: white !important;
    text-decoration: none !important;
    border-radius: 4px;
    transition: background-color 0.3s;
}

#errorMsg a:hover {
    background-color: #286090;
}

/* 关闭按钮容器 */
.dialog-footer {
    margin-top: 20px;
    text-align: right;
}

/* 关闭按钮样式 */
#closeButton {
    padding: 8px 15px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

#closeButton:hover {
    background: #e0e0e0;
}

/* 右上角关闭X按钮 */
#closeButton01 {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    color: #aaa;
    background: none;
    border: none;
}

#closeButton01:hover {
    color: #333;
}

/* 遮罩层 */
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}